home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / B-C / C++ FAQ Reference 1.0 / C++ FAQ Reference 1.0.rsrc / TEXT_531.txt < prev    next >
Encoding:
Text File  |  1993-06-30  |  565 b   |  9 lines

  1. This is speaking of the access privileges granted when a class declares a friend.  The access privilege of friendship is not inherited:  
  2.  
  3.  * I may trust you, but I don't necessarily trust your kids.
  4.  * My friends aren't necessarily friends of my kids.
  5.  * Class 'Base' declares f() to be a friend, but f() has no special access    rights with class 'Derived'.
  6.  
  7. The access privilege of friendship is not transitive:
  8.  * I may trust you, and you may trust Sam, but that doesn't necessarily mean    that I trust Sam.
  9.  * A friend of a friend is not necessarily a friend.